package com.design.subject;

import com.design.event.FireEvent;

import java.util.Observable;

/**
 * @Author: BuYee
 * @Date: 2022/8/24
 */
public class CenterSubject extends Observable {

    public void publishEvent(FireEvent event) {
        setChanged();
        notifyObservers(event);
        clearChanged();
    }

}
